package operation;

import book.Book;
import book.Booklist;

public class Exit implements IOoperation {
    public void work(Booklist book) {
        System.out.println("退出系统！");
        int cnt= book.getCount();
        for (int i = 0; i < cnt; i++) {
            book.addBook(null,i);
        }
        book.getSize(0);
        System.exit(0);
    }
}
